<?php
/* @var $this NewsController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'新闻中心',
);
?>

<h1>
<?php 
    if(isset($show_title) && !empty($show_title)) 
        echo $show_title;
    else  
        echo "所有新闻";
?>
</h1>


<div style="float:left;width:700px;">
<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
    'template'=>'<div class="sorter">{sorter}</div><div class="list">{items}</div>
        <div class="summary" style="float:left">{summary}</div>
        <div class="pager" style="float:right:">{pager}</div>',
    'summaryText'=>'共{count}条，当前页显示第{start}-{end}条',
)); ?>
</div>

<div style="float:left;margin-left:10px;width:200px;background: #EFFDFF;" class="portlet">
    <div class="portlet-decoration">
        <div class="portlet-title">新闻类别</div>
    </div>
    <div style="margin-top: 5px;margin-left:5px;">
        <ul class="operations">
        <?php
        foreach($news_type_list as $_key=>$_value){
             echo "<li>",CHtml::link($_value['type_name'],array("news/index","news_type"=>$_value['type_id'])),"</li>";
        }
        ?>
       </ul>
    </div>
</div>
